/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2025-02-09 17:09:50
 * @LastEditTime: 2025-06-12 19:54:02
 * @FilePath: /monitor_belt/src/api/picture/index.ts
 */
import { http } from "@/utils/request";
import { TQuery, TResponse } from "../index.type";

// 查询最新异常图片
export const remotePicLatest = (params:TQuery) => {
    return http.get<TResponse>(`/web/img/latest`,{params});
}

// 查询图片
export const remoteImgQuery = (params:TQuery) => {
    return http.post<TResponse>(`/web/img/query`,{params});
}
// 查询图片
export const remoteVideoQuery = (params:TQuery) => {
    return http.post<TResponse>(`/web/video/query`,{params});
}

//下载图片
export const downloadPic = (data:TQuery) => {
    return http.post<TResponse>(`/api/img/download`,data);
}